package 原型模式.demo;

/**
 * @author zyl
 * @Description
 * @since 2024/1/3 15:49
 */

public class Client {
    public static void main(String[] args) {
        ConcretePrototype concretePrototype = new ConcretePrototype("编号123");
        System.out.println("源" + concretePrototype.getId());
        ConcretePrototype c1 = (ConcretePrototype) concretePrototype.clone();
        System.out.println("克隆后" + c1.getId());
    }
}
